<table>
<tr>
<th>Stt</th>
<th>Mã</th>
<th>Tên môn học</th>
<th>Tin chỉ</th>
<th> Bắt buộc</th>
</tr>
<?php $stt=1; foreach ($mons as $mon):?>
<tr>
<td><?php echo $stt++?></td>
<td><?php echo $mon['Mon']['mamom']?></td>
<td><?php echo $mon['Mon']['tenMon']?></td>
<td><?php echo $mon['Mon']['soTC']?></td>
<td><?php echo ($mon['Monthamgianhom']['batbuoc']==1)?'':'X'?></td>
</tr>
<?php endforeach;?>
</table>